- content_for(:title) do 
  | #{@project.name}
.project-show.top-blank
  .row
    .small-12.medium-4.large-3.columns
      = render 'head'
      hr.show-for-medium-up
      = render 'fun'
      hr
      /! JiaThis Button BEGIN
      .row
        .small-12.columns
          .jiathis_style_24x24.share-link
            span.text 分享到
            a.jiathis_button_tsina
              span.fa.fa-weibo
            a.jiathis_button_weixin
              span.fa.fa-wechat
            /*a.jiathis_button_douban*/
              /*span.fa.fa-wechat*/
            /! a.jiathis_button_tqq
            /! a href="http://www.jiathis.com/share?uid=1938659" class="jiathis jiathis_txt jiathis_separator jtico jtico_jiathis" target="_blank"

      /!-- JiaThis Button END 
    .small-12.medium-8.large-9.columns
      .row.content
        .small-12.columns
          .box.system-prompt  ng-controller='AngularTabController'
            ul
              li ng-click="switchtab(1);" ng-class="class1" 风险提示
              li ng-click="switchtab(2);" ng-class="class2" 投资流程
              li ng-click="switchtab(3);" ng-class="class3" 如何付款

            div ng-show="tab1"
              p.description
                | 股权众筹是一个新兴的行业，您在投资之前应对自身的经济承受能力和心理承受能力作出客观的判断，对于自己所投资项目的资金数额和资金来源作出谨慎决定，我们倡导闲钱投资，当您准备用来养老、看病、子女教育、自住房屋抵押或是借款来投资之前，您一定要知道“投资有风险，入市需谨慎”。
                br
                | 佰业投众筹网的注册用户自行承担注册帐号及密码的保管责任，并就在其帐号及密码项下的一切活动负全部责任，用户应注意网络安全措施，定期更换密码，以防止泄露，保证个人信息安全。
                br
                | 如需核实信息请拨打官方客服电话：
                span
                 | 0571-87986220　0571-87986210。

            div ng-show="tab2"
              div.process2
                img ng-src="/uploads/about/system/liucheng2_19.jpg"
                span 提交项目
                p 佰业投分站经过初评向平台提交项目资料。

              div.process2
                img ng-src="/uploads/about/system/liucheng2_16.jpg"
                span 项目审核
                p 佰业投对每一个项目进行真实性和可行性审核，并进行实地考察。

              div.process2
                img ng-src="/uploads/about/system/liucheng2_14.jpg"
                span 项目融资
                p 认证投资人后可以认购融资项目，认购资金冻结在自己支付宝账户。

              div.process2
                img ng-src="/uploads/about/system/liucheng2_11.jpg"
                span 项目放款
                p 融资完成后，投资人认购资金放款至项目方冻结资金。

              div.process2
                img ng-src="/uploads/about/system/liucheng2_09.jpg"
                span 资金申请
                p 项目方通过佰业投申请结冻资金，用于提现进行项目开支。

              div.process2
                img ng-src="/uploads/about/system/liucheng2_06.jpg"
                span 财务监管
                p 佰业投对项目方的资金申请 进行分站主站双重审核。

              div.process2
                img ng-src="/uploads/about/system/liucheng2_03.jpg"
                span 资金审核
                p 佰业投财务监管系统为投资人项目方全面服务，实现财务透明规范化。

            div ng-show="tab3"
              .description
                ul.nofloat
                  li 要参与投资必须先成为投资人，按提示，正确填写基本信息、投资理念和身份验证，经管理员审核通过后，即可成为佰业投的投资人；
                  li 然后线下以银行柜台或网上银行的形式转账到佰业投官方监管支付宝账户：<span>baiyetou@baatou.com</span>
                  li 登录佰业投网站的用户中心提交充值申请；
                  li 佰业投运营审核人员会在两个工作日内处理您的充值申请信息；
                  li 提示：银行转账时的开户名必须与您在佰业投网站注册的真实姓名一致；
                  li 多次转账必须用同一张卡，以便于退款时保障您的资金的安全；

                ul.small-block-grid-1.medium-block-grid-2.large-block-grid-2
                  li
                    a.bottom href='/investors/basic' 申请成为投资人
                  li
                    a.bottom href='https://www.alipay.com/' target="_blank" 立即打款

        .small-12.columns
          .box.project-prompt  ng-controller='AngularTabController'
            ul
              li ng-click="switchinfo(1);" ng-class="class01" 项目简介
              li ng-click="switchinfo(2);" ng-class="class02" 商业方案
              li ng-click="switchinfo(3);" ng-class="class03" 融资信息
              li ng-click="switchinfo(4);" ng-class="class04" 运营信息
              li ng-click="switchinfo(5);" ng-class="class05" 在线交流

            div ng-show="info1"
              h5.title 项目简介
              p.description #{@project.description}
              - if @project.screenshots.present?
                h5.title 项目图片
                .content
                  ul.image.clearing-thumbs.small-block-grid-1.medium-block-grid-3 data-clearing=""
                    - @project.screenshots.each do |s|
                      li
                        = link_to s.image.url do
                          - image_tag s.image.small.url

            div ng-show="info2"
              h5.title 商业方案
              .description
                - if @plans
                  p #{@plans.message}
                  -if @plans.plan
                    a.bottom href="#{@plans.plan}" 下载方案书

            div ng-show="info3"
              .box-wrapper ng-controller='MoneyRequireController' ng-init='init(#{@project.id}, {})'
                .box
                  .invest-content
                    moneyrequire require='opened' title='"融资情况"'
                    .detail.ng-cloak ng-show='detail_flag'
                      .leader-info ng-show='opened.leader'
                        ul.no-bullet
                          li
                            .type
                              | 领投人
                            .item
                              img ng-src='{{ opened.leader.avatar }}'
                              a ng-href='/users/{{ opened.leader.id}}'
                                | {{ opened.leader.name }}
                          li
                            .type
                              | 领投Carry
                            .item
                              | {{ opened.carry }}%
                          li
                            .type
                              | 投资条款
                            .item
                              .no-content ng-show='is_law_iterms_empty()'
                                | 暂无条款
                              ul.no-bullet.law-iterms.ng-cloak ng-init = 'law_iterm_show = []' ng-hide='is_law_iterms_empty()'
                                li ng-repeat='law_iterm in opened.law_iterms'
                                  a.law-title ng-class="{ 'expand': law_iterm_show[law_iterm.id] }" ng-click='law_iterm_show[law_iterm.id] = ! law_iterm_show[law_iterm.id]'
                                    span
                                      | {{ law_iterm.title }}
                                    i.fa.fa-chevron-circle-right ng-hide='law_iterm_show[law_iterm.id]'
                                    i.fa.fa-chevron-circle-down ng-show='law_iterm_show[law_iterm.id]'
                                  p.description.law-description ng-show='law_iterm_show[law_iterm.id]'
                                    | {{ law_iterm.description }}
                          li ng-show=' opened.leader_word '
                            .type
                              | 领投人的话
                            .item
                              .leader-word
                                .pre-i
                                  i.fa.fa-quote-left
                                .description
                                  | {{ opened.leader_word }}
                                .post-i
                                  i.fa.fa-quote-right
                                .created-at
                                  | {{ opened.opened_at }}

                      .followers
                        .type
                          | 跟投人
                        .item
                          - opened = @project.opened_money_require
                          - investments = opened && opened.investments.default_order.limit(6)
                          - if investments.blank?
                            | 暂无投资
                          - else
                            ul.small-block-grid-3.medium-block-grid-6
                              - investments.each do |investment|
                                - user = investment.user
                                li
                                  a href="#{user_path(user)}" title="#{user.name}"
                                    = image_tag user.avatar_url
                                    .money
                                      | ¥ #{number_with_delimiter(investment.money)}

                    investbutton require='opened'
                    .more-info.ng-cloak
                      a ng-hide='detail_flag' ng-click='detail_flag=true'
                        | 查看详情
                        i.fa.fa-angle-double-down
                      a ng-show='detail_flag' ng-click='detail_flag=false'
                        | 收起详情
                        i.fa.fa-angle-double-up
                .box.history ng-repeat='history in histories'
                  moneyrequire require='history' title='"历史投资"'

            div ng-show="info4"
              h5.title 运营信息
              .description 
                .row
                  ul.s-cmts#s-cmts
                    - @calendars.each_with_index do |calendar,index|
                      li.calendar
                        span.time #{DateTime.parse(calendar.dodate.to_s).strftime('%Y-%m-%d').to_s}
                        span.run-dot
                          i.fa.fa-circle
                          span.run-line
                        span.run-msg #{calendar.message}

            div ng-show="info5"
              .description ng-controller='ProjectMessageController' ng-init='init(#{@project.id},0)'
                form#uptalk
                  .row
                    .small-12.columns
                      textarea#talk_input project_id='#{@project.id}' name='message' rows='5' placeholder='下面我简单的讲两句...'
                      .control-actions
                        button#upbutton 发布
                        .simple_captcha_refresh_button
                          #{ simple_captcha_options[:refresh_button] }
                        .simple_captcha_image#simple_captcha_image
                          #{ simple_captcha_options[:image] }
                        .simple_captcha_field
                          #{ simple_captcha_options[:field] }
                  .row
                    ul.s-cmts#s-cmts
                      li ng-repeat="message in messages"
                        .media
                          a href="/users/{{ message.user_id }}" class="pull-left" alt="{{ message.post_user_name }}"
                            img.avatar src='{{ message.post_user_avatar }}'
                          .media-body
                            .comment-head
                              a href="/users/{{ message.user_id }}" class="pull-left"
                                | {{ message.post_user_name }}
                            p.comment-1
                              | {{ message.message }}
                            p.comment-2 ng-show='message.post_reply_message'
                              span 管理员回复：
                              |  {{ message.post_reply_message }}
          .box
    javascript:
      var jiathis_config={
        data_track_clickback:true,
        summary:"#{@project.description}",
        title: "#{@project.fullname} 这个创业赢上的项目非常不错",
        shortUrl:false,
        hideMore:false
      }
    script type='text/javascript' src="http://v3.jiathis.com/code/jia.js?uid=1938659" charset="utf-8"
